ci: pass deployer pubkey as buffer authority for devnet#73
Merged
Conversation
The write-program-buffer action runs `solana program set-buffer-authority` when the program already exists on-chain, regardless of whether a transfer is actually intended. We were passing an empty `buffer-authority-address` on devnet, which the CLI rejects with "The argument '--new-buffer-authority <NEW_BUFFER_AUTHORITY>' requires a value but none was supplied" and retries up to 50 times before failing. Derive the deployer pubkey from the materialized keypair and use it as the buffer authority on devnet. This is a no-op transfer (deployer keeps authority) and satisfies the action's requirement. Mainnet still uses SQUADS_VAULT.
Compute Unit Report
Generated: 2026-04-30 |
The write-metadata-buffer and verify-build (mainnet/use-squads) actions
take `keypair` as the keypair file content, not a path — same pattern as
the devnet sub-actions fixed previously. Pass `${{ env.DEPLOYER_KEYPAIR }}`
directly so a future mainnet release does not fail with "Input must be a
JSON array".
The Squads upgrade-proposal action is left as-is (still consumes
/tmp/deployer.json), so the materialize/cleanup steps remain.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
buffer-authority-addressfor devnet releases.Write program bufferon devnet, which was retrying 50× then failing.Root Cause
solana-developers/github-actions/write-program-bufferruns an internalTransfer buffer authoritystep wheneversteps.check-program.outputs.exists == 'true':We were passing an empty
buffer-authority-addresson devnet, so the CLI rejected the call:The action has no flag to skip this step, so we satisfy it by transferring authority to the deployer itself (effective no-op).
Test Plan
Releaseworkflow againstdevnetfrom this branch.Write program buffersucceeds (including theTransfer buffer authoritysub-step).Upgrade program (devnet)proceeds and the program upgrade lands.Failing run for reference: https://github.com/solana-program/subscriptions/actions/runs/25179831115